home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: nntp.coast.net!torn!utnut!utzoo!spenford!henry
- From: Henry Spencer <henry@zoo.toronto.edu>
- Subject: Re: why not add getch() to the std C RTL?
- References: <DM85L8.5Jn@emr1.emr.ca> <bnelsonDM887t.LDI@netcom.com>
- Sender: henry%spenford@zoo.toronto.edu (Henry Spencer)
- Organization: SP Systems, Toronto
- Date: Sun, 4 Feb 1996 20:28:38 GMT
- Message-ID: <DM9q7q.4wt%spenford@zoo.toronto.edu>
-
- > There are *many* people who want to do the following in their C programs:
- > - read a single unbuffered keystroke (getch() in DOS, ioctl in unix...)
-
- The reason this isn't in standard C is quite simple: there are operating
- systems -- ones with substantial C user communities -- which cannot do
- this. Their keyboard input is always buffered.
-
- It could have been defined as an optional feature, I suppose, but the ANSI
- C committee was firmly opposed to "standards" which have multiple flavors;
- they wanted to write one standard, not a whole family of them. (In the
- end, they didn't quite succeed -- standard C is actually two standards,
- one each for "hosted" and "free-standing" environments -- but they came a
- lot closer than certain other standards.)
- --
- Space will not be opened by always | Henry Spencer
- leaving it to another generation. --Bill Gaubatz | henry@zoo.toronto.edu
-